<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>上传头像</title>
</head>
<body>
<h1>上传学生头像</h1>
<form th:action="@{/uploadPhoto}" method="post" enctype="multipart/form-data">
    <input type="hidden" name="studentId" th:value="${studentId}">
    <input type="hidden" name="teacherId" th:value="${teacherId}">
    选择文件: <input type="file" name="file"><br>
    <button type="submit">上传</button>
</form>
<a href="/">返回首页</a>
</body>
</html>